package com.example.elmspringboot.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//@TableName(value = "sys_admin")
public class Admin {
    @TableId(value = "admin_id")//当数据库表主键不为id时，使用@TableId
    private Integer adminId;
    @TableField(value = "admin_name")
    private String adminName;
    @TableField(value = "admin_password")
    private String adminPassword;
}
